package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.admin.vo.UserQueryForm;
import com.cloudbroker.bcs.platform.ltb.common.config.ConfigValues;
import com.cloudbroker.bcs.platform.ltb.middle.dao.UserDAO;
import com.cloudbroker.bcs.platform.ltb.middle.dao.UserRemindDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.UserEntity;
import com.cloudbroker.bcs.platform.ltb.middle.entity.UserRemind;
import com.cloudbroker.bcs.platform.ltb.middle.service.UserRemindService;
import com.cloudbroker.bcs.platform.ltb.middle.service.UserService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.TenantServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by tianrui on 2016/7/5.
 */
@Service
public class UserRemindServiceImpl extends TenantServiceImplBase<UserRemind, String>
        implements UserRemindService {

    @Resource
    UserRemindDAO userRemindDAO;

    @Override
    protected DAOBase<UserRemind, String> getDAO() {
        return userRemindDAO;
    }

    @Override
    public List<UserRemind> qry(UserRemind userRemind) {
        return userRemindDAO.qry(userRemind);
    }

    @Override
    public List<Long> tagRemindQry(UserRemind userRemind) {
        return userRemindDAO.tagRemindQry(userRemind);
    }

    @Override
    public UserRemind getRemind(UserRemind userRemind) {
        return userRemindDAO.getRemind(userRemind);
    }

    @Override
    public void addRemind(UserRemind qry) {
        qry.setMycat_flag(ConfigValues.getMycatFlag());
        userRemindDAO.addRemind(qry);
    }

    @Override
    public void updateRemindFlag(UserRemind userRemind) {
        userRemindDAO.updateRemindFlag(userRemind);
    }

    @Override
    public void updateAllCombineRemind(UserRemind userRemind) {
        userRemindDAO.updateAllCombineRemind(userRemind);
    }

    @Override
    public List<UserRemind> listRemind(UserRemind userRemind) {
        return userRemindDAO.listRemind(userRemind);
    }
}
